package arrayGenerator

import "math/rand"

// GenerateOrderedArray 生成有序数组
func GenerateOrderedArray(n int) []int {
	arr := make([]int, n)
	for index := 0; index < n; index++ {
		arr[index] = index
	}
	return arr
}

// GenerateRandomArray 生成随机数组
func GenerateRandomArray(n, bound int) []int {
	arr := make([]int, n)
	for i := 0; i < n; i++ {
		arr[i] = rand.Intn(bound)
	}
	return arr
}
